package com.github.bridge.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.github.bridge.handler.ESignHandler;
import com.github.bridge.request.CreateRemarkUrlDTO;
import com.github.bridge.response.CreateRemarkUrlVO;
import com.github.bridge.util.R;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import wiki.xsx.core.log.Log;
import wiki.xsx.core.log.Position;
import wiki.xsx.core.log.ReadWriteType;

@Slf4j
@RestController
@RequestMapping("/remark")
@RequiredArgsConstructor
@Tag(name = "手写备注")
@ApiSupport(order = 6, author = "张辉")
public class RemarkController {
    private final ESignHandler eSignHandler;


//    @SaIgnore
//    @PostMapping("/createRemarkUrl")
//    @Operation(summary = "创建备注填写url")
//    @Log(value = "创建备注填写url", position = Position.ENABLED, readWriteType = ReadWriteType.WRITE)
//    public R<CreateRemarkUrlVO> createRemarkUrl(@RequestBody @Validated CreateRemarkUrlDTO dto) {
//        CreateRemarkUrlVO vo = eSignHandler.createRemarkUrl(dto);
//        return R.ok(vo);
//    }




}
